# -*- coding: utf-8 -*-
# @Author  : haomh
# @Time    : 2025/11/7 17:29
# @Function:
# 创建一个0-10的列表

# list1 = []
# i = 0
# while i < 10:
#     list1.append(i)
#     i += 1
#
# print(list1)

# list2 = []
# for i in range(0, 11):
#     if i % 2 == 0:
#         list2.append(i)
# print(list2)

# 列表推导式实现

# list3 = [j for j in range(11)]
# print(list3)
#
# list3 = [j for j in range(0, 11, 2)]
# print(list3)

# list3 = [j for i in range(11) for j in range(11) if j % 2 == 0]
# print(list3)
#
# dict = {i: i ** 2 for i in range(1, 6)}
# print(dict)

# list1 = ['name', 'age', 'gender']
# list2 = ['Tom', 20, 'man']
#
# dict2 = {list1[i]: list2[i] for i in range(len(list1))}
# print(dict2)
#
# counts = {'MBP': 268,
#           'HP': 125,
#           'DELL': 201, 'Lenovo': 199, 'acer': 99}

# 需求：提取上述电脑数量大于200的字典数据

# dict3 = {counts.keys(): counts.values() for}
#
# list = []
# dict = {'key': 'value', 'key2': 'value2'}
# dict1 = dict(key='value')
# t = ()
# set = {}

# dict3 = {counts.keys(): counts.values() for}

list =[1,2,3,4,5,5,2,3,2,4]
list1 =[]
for i  in list:
    if i in list1:
        break
    else:
        list1.append(i)
print(list1)


